﻿/*
Commerce by Onex – eCommerce software platform (www.ecommerce.byonex.com)
Copyright (C) 2008-2010 by Onex Group

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
 */
using System;
using System.Collections.Generic;
using System.Text;

namespace ShopModel
{
    /// <summary>
    /// Klasa przechowująca adres email użytkownika oraz id wiadomości do wysłania (Class storing user e-mail address and id of message to be send)
    /// </summary>
    public class NewsletterEmail
    {
        #region VARIBLES

        private int _NewsID;
        private string _Email;
        private int _PrefferedLanguageID;

        #endregion

        #region CONSTRUCTORS

        public NewsletterEmail()
        { 
            _NewsID = 0; 
            _Email = "";
            _PrefferedLanguageID = 0;
        }

        public NewsletterEmail(int NewsID, string Email, int PrefferedlanguageID)
        {
            _NewsID = NewsID;
            _Email = Email;
            _PrefferedLanguageID = PrefferedlanguageID;
        }

        #endregion

        #region FIELDS

        public int NewsID
        {
            get { return _NewsID; }
            set { _NewsID = value; }
        }

        public string Email
        {
            get { return _Email; }
            set { _Email = value; }
        }

        public int PrefferedLanguageID
        {
            get { return _PrefferedLanguageID; }
            set { _PrefferedLanguageID = value; }
        }
        #endregion

    }
}
